package com.dhcc.bpm.modules.orga.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.orga.entity.Userhome;
import com.dhcc.bpm.modules.orga.vo.UserhomeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName UserhomeMapper
 * @Description 用户门户表 Mapper 接口
 * @Author daina
 * @Date 2020/2/24 19:25
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
public interface UserhomeMapper extends BaseMapper<Userhome> {

	/**
	 * @Description 自定义分页
	 * @Author daina
	 * @Date 10:03 2020/2/25
	 * @param page
	 * @param user
	 * @return java.util.List<com.dhcc.bpm.modules.orga.vo.UserhomeVO>
	 **/
	List<UserhomeVO> selectUserPage(IPage page, UserhomeVO user);
    /**
     * @Description 查询用户信息
     * @Author daina
     * @Date 10:03 2020/2/25
     * @param page
     * @param user
     * @return java.util.List<com.dhcc.bpm.modules.orga.vo.UserhomeVO>
     **/
	List<UserhomeVO> selectUserInfo(IPage page, UserhomeVO user);
	/**
	 * @Description 查询用户列表
	 * @Author daina
	 * @Date 10:10 2020/3/14
	 * @param user
	 * @return java.util.List<com.dhcc.bpm.modules.orga.vo.UserhomeVO>
	 **/
	List<UserhomeVO> listUser(UserhomeVO user);
	/**
	 * @Description 根据手机号邮箱查询用户
	 * @Author xiafayu
	 * @Date 2021/3/5 18:09
	 * @param email
	 * @param phone
	 * @return com.dhcc.bpm.modules.orga.entity.Userhome
	 **/
	List<Userhome> findOpcUser(@Param("email") String email, @Param("phone") String phone);

	List<Userhome> findOpcUserByEmailOrPhone(@Param("email") String email, @Param("phone") String phone);

	List<UserhomeVO> listUserDev(IPage page, UserhomeVO userhome);
}
